package com.cskaoyan.utils;

/**
 * @author break_a_leg
 * @description
 * @date 2021年10月22日 21:12
 */
public class OrderStatusUtil {

    public static String getOrderStatusText(Short orderStatus) {
        String orderStatusText = null;
        if (OrderStatus.UN_PAID.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.UN_PAID.getMsg();
        } else if (OrderStatus.PAID.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.PAID.getMsg();
        } else if (OrderStatus.SHIPPED.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.SHIPPED.getMsg();
        } else if (OrderStatus.USER_RECEIVED.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.USER_RECEIVED.getMsg();
        } else if (OrderStatus.SYSTEM_RECEIVED.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.SYSTEM_RECEIVED.getMsg();
        } else if (OrderStatus.USER_CANCEL.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.USER_CANCEL.getMsg();
        } else if (OrderStatus.SYSTEM_CANCEL.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.SYSTEM_CANCEL.getMsg();
        } else if (OrderStatus.APPLY_REFUND.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.APPLY_REFUND.getMsg();
        } else if (OrderStatus.REFUNDED.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.REFUNDED.getMsg();
        } else if (OrderStatus.COMMENTED.getCode().equals(orderStatus)) {
            orderStatusText = OrderStatus.COMMENTED.getMsg();
        }
        return orderStatusText;
    }
}
